package com.hhy.hhy_weibo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hhy.hhy_weibo.model.domain.BmsComment;
import com.hhy.hhy_weibo.model.vo.CommentVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface BmsCommentMapper extends BaseMapper<BmsComment> {

    /**
     * getCommentsByTopicID
     *
     * @param topicid
     * @return
     */
    List<CommentVO> getCommentsByTopicID(@Param("topicid") String topicid);

    List<CommentVO> getCommentsByTopicIdAndParentId(@Param("topicid") String topicid , @Param("parentid") String parentid);
}
